package mavenProject.Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import mavenProject.DAO.AnswerDAO;
import mavenProject.Model.Answer;

@Service(value = "AnswerService")

public class AnswerServiceImp implements AnswerService {

	@Autowired
	AnswerDAO answerDao;
	
	public Answer getAnswer(int id) {
		return answerDao.getAnswer(id);
	}
	
	public List<Answer> getAnswersByQuestId(int id) {
		return answerDao.getAnswersByQuestionId(id);
	}
	
}
